package polls.models;

import java.io.Serializable;
import java.util.*;

public class User implements Serializable, Comparable {
	private Long id = null;
	private String username;
	private String firstname;
	private String lastname;
	private Privillege privillege;
	
	/**
	 * Konstruktor bezparametrowy dla narzêdzi JavaBean.
	 */
	User() {}

	public User(String username, String firstname, String lastname,
			Privillege privillege) {
		super();
		this.username = username;
		this.firstname = firstname;
		this.lastname = lastname;
		this.privillege = privillege;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getFirstname() {
		return firstname;
	}

	public void setFirstname(String firstname) {
		this.firstname = firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public Privillege getPrivillege() {
		return privillege;
	}

	public void setPrivillege(Privillege privillege) {
		this.privillege = privillege;
	}

	@Override
	public int compareTo(Object arg0) {
		// TODO Auto-generated method stub
		return 0;
	}

}
